/** 
* All Rights Reserved , Copyright (C) 2022 , 青岛鼎信通讯股份有限公司
* 
* MpmProjectBidScoreHisServiceAuto
* 评标细则变更历史表
* 
* 修改纪录
* 2022-04-27 版本：1.0 hudeyong 创建。
* @version 版本：1.0
* @author 作者：hudeyong
* 创建日期：2022-04-27
*/

package com.topscomm.mpm.service.impl.auto;

import javax.annotation.Resource;
import com.topscomm.basic.IBasicDao;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import com.topscomm.mpm.*;
import com.topscomm.mpm.pojo.MpmProjectBidScoreHisEntity;
import com.topscomm.mpm.dao.IMpmProjectBidScoreHisDao;


public class MpmProjectBidScoreHisServiceAuto extends MpmService<MpmProjectBidScoreHisEntity,IMpmProjectBidScoreHisDao> {
	
	/**
	 * @author: hudeyong
	 * @date: 2022-04-27
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("type") != null) {
			temp = mapRow.get("type").toString();
			mapRow.put("disptype", datacodeCache.getValueDynamic("MpmBidScoreType", temp, "code", "name"));
		}
		if (mapRow.get("times") != null) {
			temp = mapRow.get("times").toString();
			mapRow.put("disptimes", datacodeCache.getValueDynamic("MpmBidScoreTimes", temp, "code", "name"));
		}
		if (mapRow.get("flowid") != null) {
			temp = mapRow.get("flowid").toString();
			mapRow.put("dispflowid", datacodeCache.getValueDynamic("ApprovalFlow_MpmProjectBidScore", temp, "id", "name"));
		}
		if (mapRow.get("state") != null) {
			temp = mapRow.get("state").toString();
			mapRow.put("dispstate", datacodeCache.getValueDynamic("TapApprovalBillState", temp, "code", "name"));
		}
		if (mapRow.get("enabled") != null) {
			temp = mapRow.get("enabled").toString();
			mapRow.put("dispenabled", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}
	}

	@Override
	@Resource(name = "mpmProjectBidScoreHisDao")
	public void setDao(IBasicDao<MpmProjectBidScoreHisEntity> dao) {		
		super.setDao(dao);
	}
}
